<%@ Page Language="C#" Title="Rate Doctors" AutoEventWireup="true" CodeFile="topDoctor.aspx.cs" Inherits="Doctor_ratedDoctor" MasterPageFile="~/MainMaster.master" %>

<%@ MasterType VirtualPath="~/MainMaster.master" %>
<%@ Register Assembly="Manager" Namespace="PagingControl" TagPrefix="cc1" %>
<%@ Register Src="~/includes/showRate.ascx" TagPrefix="showRate" TagName="Uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="server">
   <div class="heading_inner">
        <div class="heading_topic">
            <h2>Top Doctors</h2>
        </div>
    </div>

    <div class="cl"></div>
    <!---/ Left wrapper -->
    
    <!--**Content 1 Starts Here**-->

    <div style="width: 94%; padding: 3%">
        <div style="background-color: #f4f4f4; width: 94%; padding: 3%">
            <table cellpadding="0" cellspacing="0" border="0" style="width: 800px;">
     
        <tr>
      
            <td align="right">
                <a href="" id="lnkSevenDay" runat="server">Last 7  Days</a> &nbsp;&nbsp;&nbsp;&nbsp; <a href="" id="lnkAllTime" runat="Server">All Time</a>
            </td>
         
        </tr>

        <tr>
           
            <td align="left">
                <table cellpadding="0" cellspacing="0" border="0" style="width: 800px;">
                    <asp:Panel ID="trspec" runat="server">
                        <tr>
                            <td style="height: 30px;" colspan="2" align="left"><b>Select a specialty to view Top Doctors :</b></td>

                        </tr>
                        <tr id="trerror" visible="false" runat="server">
                            <td align="left" style="height: 30px">
                                <asp:Label runat="server" ID="lblerr" Visible="false"></asp:Label></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td align="left"  style="height: 30px; padding-left: 30px;width:auto">
                                <asp:BulletedList ID="specialtylist" runat="server" DisplayMode="HyperLink" CssClass="bullet_link">
                                </asp:BulletedList>
                            </td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="padding-left: 20px" colspan="2" runat="server" id="tdall">
                                <b>View
                                                <asp:LinkButton ID="lnkAllspec" runat="server" Text="All Specialties" OnClick="lnkAllspec_Click"></asp:LinkButton></b>
                            </td>
                        </tr>
                    </asp:Panel>
                    <tr>
                        <td align="right" style="height: 20px">
                            <asp:Literal ID="litPaging" runat="server" />
                        </td>
                    </tr>
                    <tr id="trresult" runat="server" visible="false">
                        <td colspan="2">To browse another Specialty. Please click <a href="<%=Session["strHttp"] %>Doctor/TopDoctor.aspx" id="lnkhere">here</a>
                            <br />
                            <br />
                            <asp:GridView
                                runat="Server"
                                DataKeyNames="rate"
                                ID="grdRateDoctor"
                                AllowPaging="True"
                                AutoGenerateColumns="False"
                                Width="100%"
                                HeaderStyle-BackColor="Lavender"
                                HeaderStyle-HorizontalAlign="Center"
                                HeaderStyle-Height="30px"
                                HeaderStyle-VerticalAlign="Middle"
                                BorderStyle="Solid"
                                PagerStyle-BackColor="Lavender"
                                PagerStyle-ForeColor="white"
                                PagerStyle-HorizontalAlign="Center"
                                OnRowDataBound="grdRateDoctor_RowDataBound"
                                GridLines="None">
                                <EmptyDataRowStyle BackColor="LightBlue"
                                    ForeColor="Red" />

                                <EmptyDataTemplate>


                                    <strong>No Data Found.  </strong>

                                </EmptyDataTemplate>

                                <Columns>
                                    <asp:TemplateField HeaderText="Name">
                                        <ItemTemplate>
                                            <!-- Comented for implement new URL Formate at 16/07/08 by Ranjeet
                                                           <a class="link-result" href='<%=Session["strHttp"]%>doctor/DoctorsDetails.aspx?id=<%# Eval("Id") %><%#obj.FormatURL(Eval("speciality"),Eval("pspeciality"),Eval("state"),Eval("city"),Eval("zipcode"), true)  %>'
                                                title="Show Details"><b><u>
                                                    <%#Eval("Name")%></u>
                                                </b></a> -->

                                            <a class="link-result" href='<%=Session["strHttp"]%>doctors/<%#obj.URLFormat(Eval("speciality"),Eval("state"),Eval("city"), true)%>/<%# Eval("Id") %>-<%# Eval("Name") %>.aspx'
                                                title="Show Details"><b><u>
                                                    <%#Eval("Name")%></u>
                                                </b></a>

                                        </ItemTemplate>
                                        <ItemStyle Width="25%" />
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:TemplateField>

                                    <asp:BoundField HeaderText="Location" DataField="Location">
                                        <ItemStyle Width="30%" CssClass="bodytxt" />
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="Specialty" DataField="Speciality">
                                        <ItemStyle Width="35%" CssClass="bodytxt" />
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="Rating" DataField="Rate">
                                        <ItemStyle Width="35%" HorizontalAlign="Left" CssClass="ratingNumber" Wrap="False" />
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:TemplateField>
                                        <HeaderStyle HorizontalAlign="Left" />
                                        <ItemStyle VerticalAlign="Top" />
                                    </asp:TemplateField>
                                </Columns>
                                <HeaderStyle BackColor="Lavender" HorizontalAlign="Center" />
                                <PagerStyle BackColor="Lavender" ForeColor="Black" HorizontalAlign="Right" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <!-- custom paging -->
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>

                    <tr>
                        <td align="right">
                            <cc1:Paging ID="cntPaging" runat="server" ResultsLocation="Bottom"
                                StoredProcedureName="Get_topRatedDoctors"
                                OrderBy="fname" Control_Type="GridView" BindToControl="grdRateDoctor" PagerCount="10" PageSize="10" ShowFirst="False" ShowLast="False"></cc1:Paging>

                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <br />
                            <%
                                if (Request.QueryString["catname"] != null)
                                    Response.Write(obj.DisplayAdBanner(Request.QueryString["catname"].ToString(), "")); 
                            %>
                                            
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="left">
                            <br />
                            <asp:Label runat="server" ID="lblDateCon"></asp:Label></td>
                    </tr>
                </table>
            </td>
           
        </tr>
 
        <tr>
            <td align="center">
                 <a href="<%=Session["strHttp"]%>tellaFriend.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image28','','<%=Session["strHttp"]%>images/tf_nr.png',1)">
                                    <img src="<%=Session["strHttp"]%>images/tf_hvr.png" name="Image28" width="121" height="34" border="0" id="Image28" /></a>
                                <a href="<%=Session["strHttp"]%>ratingsystem.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image29','','<%=Session["strHttp"]%>images/work_nr.png',1)">
                                    <img src="<%=Session["strHttp"]%>images/work_hvr.png" name="Image29" width="276" height="34" border="0" id="Image29" /></a></td>
        </tr>
    </table>
    
            </div></div>
    <asp:HiddenField ID="hdnCategory" runat="server" />
</asp:Content>
